﻿using System;
using System.Net;
using System.Net.Mail;

namespace CSharp.Common.Http
{
    public class MailSender
    {
        private string _content;
        private string _title;
        private string _to;

        public MailSender(string title, string content, string to)
        {
            this._title = title;
            this._content = content;
            this._to = to;
        }

        public void Send()
        {
            new SmtpClient("smtp.gmail.com", 0x24b) { Credentials = new NetworkCredential("firebirdstdio@gmail.com ", "wyxdrqc101"), EnableSsl = true }.Send("firebirdstdio@gmail.com", this._to, this._title, this._content);
        }
    }
}

